<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .l1{
        margin: 100px;
        width: 100px;
        height: 100px;
        background-color: gold;
        border-radius: 10px;
    }
    .l1>div{
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background-color: red;
        position: relative;
        left:85px ;
        top: -10px;
        text-align: center;
        color: #ffffff;
        line-height: 28px;
    }
</style>
<body>
    <div class="l1">
        <div>5</div>
    </div>
</body>
</html>